package cn.iocoder.yudao.module.infra.framework.log.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
@ConfigurationProperties(prefix = "trace.http")
@Data
public class HttpTraceConfig {
    private List<String> disableResponseBodyUrls = new ArrayList<>(); // 禁用响应体的uri列表


    private static HttpTraceConfig httpTraceConfig;

    public HttpTraceConfig() {
        HttpTraceConfig.httpTraceConfig = this;
    }

    // 静态方法获取HttpTraceConfig实例
    public static HttpTraceConfig getHttpTraceConfig() {
        return httpTraceConfig;
    }

}
